package router

import (
	"github.com/gin-gonic/gin"
	"zk2/api/handle"
)

func Router(r *gin.Engine) {
	api := r.Group("/api")
	{
		chat := api.Group("/chat")
		{
			chat.POST("add", handle.ChatAdd)
		}
		friend := api.Group("/friend")
		{
			friend.POST("list", handle.FriendList)
		}

	}

}
